mysql查询树形接口的所有子节点

您所在的位置:网站首页 mysql 树形查询 mysql查询树形接口的所有子节点

mysql查询树形接口的所有子节点

2023-06-19 07:10| 来源: 网络整理| 查看: 265

mysql查询树形接口的所有子节点,查询表: shi_point_chapter ,的3层子节点

SELECT id,title,title2,isLeaf,parentId,treeDeep,showorder from shi_point_chapter c         where parentId=420435 or parentId in         (SELECT id from shi_point_chapter where parentId=420435 )         or parentId in         (SELECT id from shi_point_chapter  where parentId in (SELECT id from shi_point_chapter where parentId=420435))         or parentId in         (SELECT id from shi_point_chapter where parentId in         (SELECT id from shi_point_chapter  where parentId in (SELECT id from shi_point_chapter where parentId=420435)))  



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3